﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using Base.Core.Biz;

namespace DataInterface
{
    public interface IEmployeeRepository
    {
        Employee Get(int id);

        IList<Employee> GetAll();

        long Count();

        long Count(IList<SearchInfo> searchInfos);

        IList<Employee> FindAll(IList<SearchInfo> searchInfos, IList<OrderInfo> orders);

        IList<Employee> FindAll(IList<SearchInfo> searchInfos, PagingInfo pagingInfo, IList<OrderInfo> orders);

        Employee FindSingle(IList<SearchInfo> searchInfos, IList<OrderInfo> orders);

        Employee SaveOrUpdate(Employee entity);

        void Delete(Employee entity);
    }
}
